package top.xxyu.entity;

import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Log4j2
@Data
@Entity
@Table(name = "fileInfo")
public class FileInfo {
    @Id
    @Column(length = 36)
    private String id;
    @Column
    private String name;
    @Column
    private String path;
    @Column
    private String type;
    @Column
    @CreationTimestamp
    private Date createDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
